'use strict';

const Service = require('egg').Service;

class FeedbackService extends Service {

  newFeedback(userId, content) {
    const ctx = this.ctx;
    const m = new ctx.model.Feedback();
    m.user_id = userId;
    m.content = content;
    m.deleted = false;
    m.save();
    return m._id;
  }
}

module.exports = FeedbackService;

